<?php


class UCCASS_verBarra extends UCCASS_Main
{
    function UCCASS_verBarra()
    { $this->load_configuration(); }

    
    function survey_verBarra()
    {   
    	$barra = $_REQUEST['nameBarra'];
    	
    	$posicion = strpos($barra, '.');
        
    	$barra_left = substr($barra, 0, $posicion).'_left.gif'; 
    	$barra_right = substr($barra, 0, $posicion).'_right.gif'; 
    	
    	$active_left = 'off';
    	$active_right = 'off';
    	
    	
    	if(file_exists($this->CONF['template_path'] . "/images/$barra_left" ))
        { $active_left = 'on';}
        
        if(file_exists($this->CONF['template_path'] . "/images/$barra_right"))
        { $active_right = 'on';}
        
        $this->smarty->assign_by_ref('barra',$barra);
        $this->smarty->assign_by_ref('barra_left',$barra_left);
        $this->smarty->assign_by_ref('barra_right',$barra_right);
        $this->smarty->assign_by_ref('active_left',$active_left);
        $this->smarty->assign_by_ref('active_right',$active_right);
        
		
    	$retval = $this->smarty->fetch($this->template.'/ver_barra.tpl');
        return $retval;
    
    }
}
?> 